home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / MacODBC / ODBC Tools / SampleDriver / EXECUTE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-16  |  1.3 KB  |  81 lines  |  [TEXT/MPS ]

  1.  
  2.     /*
  3.     ** EXECUTE.C - This is the module containing the code for SQL for
  4.     ** executing SQL Commands.
  5.     **
  6.     ** (C) Copyright 1991, 1992 By Microsoft Corp.
  7.     */
  8.  
  9.  
  10. #include "sample.h"
  11.  
  12.  
  13.     //  Execute a prepared SQL statement
  14.  
  15. SQL_PRE_API RETCODE SQL_API
  16. SQLExecute(
  17.     HSTMT       hstmt)
  18. {
  19.     return SQL_SUCCESS;
  20. }
  21.  
  22.  
  23.     //  Performs the equivalent of SQLPrepare, followed by SQLExecute.
  24.  
  25. SQL_PRE_API RETCODE SQL_API
  26. SQLExecDirect(
  27.     HSTMT       hstmt,
  28.     UCHAR  FAR *szSqlStr,
  29.     SDWORD      cbSqlStr)
  30. {
  31.     return SQL_SUCCESS;
  32. }
  33.  
  34.  
  35.     //  Returns the SQL string as modified by the driver.
  36.  
  37. SQL_PRE_API RETCODE SQL_API
  38. SQLNativeSql(
  39.     HDBC        hdbc,
  40.     UCHAR  FAR *szSqlStrIn,
  41.     SDWORD      cbSqlStrIn,
  42.     UCHAR  FAR *szSqlStr,
  43.     SDWORD      cbSqlStrMax,
  44.     SDWORD FAR *pcbSqlStr)
  45. {
  46.     return SQL_SUCCESS;
  47. }
  48.  
  49.  
  50.     //  Supplies parameter data at execution time.  Used in conjuction with
  51.     //  SQLPutData.
  52.  
  53. SQL_PRE_API RETCODE SQL_API
  54. SQLParamData(
  55.     HSTMT       hstmt,
  56.     PTR    FAR *prgbValue)
  57. {
  58.     return SQL_SUCCESS;
  59. }
  60.  
  61.  
  62.     //  Supplies parameter data at execution time.  Used in conjunction with
  63.     //  SQLParamData.
  64.  
  65. SQL_PRE_API RETCODE SQL_API
  66. SQLPutData(
  67.     HSTMT       hstmt,
  68.     PTR         rgbValue,
  69.     SDWORD      cbValue)
  70. {
  71.     return SQL_SUCCESS;
  72. }
  73.  
  74.  
  75. SQL_PRE_API RETCODE SQL_API
  76. SQLCancel(
  77.     HSTMT       hstmt)
  78. {
  79.     return SQL_SUCCESS;
  80. }
  81.